Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mbedtls c get attribute value #193

Merged

Conversation

chinglee-iot
Copy link
Member

Description

This PR address the issue #170 to fix mbedtls C_GetAttributeValue implementation

  • ulValueLen is set to CK_UNAVAILABLE_INFORMATION if the attributes for the object can't be obtained.
  • Attributes in the templates will be processed when error codes are CKR_ATTRIBUTE_SENSITIVE, CKR_ATTRIBUTE_TYPE_INVALID, or CKR_BUFFER_TOO_SMALL.

Reference PKCS11-base-v2.40

Test Steps

Verify in the unit test.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

#170
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@chinglee-iot chinglee-iot merged commit 2ad3f80 into FreeRTOS:main May 13, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants